<?php

/**
 * home actions.
 *
 * @package    nutrition
 * @subpackage home
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class homeActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
      $this->sum = Doctrine_Core::getTable('dynamicinfomation')->getSum();
      $this->news = Doctrine_Core::getTable('category')->getCategoriesQueryByGroups('工作动态')->execute();
      $this->schools = Doctrine_Core::getTable('category')->getCategoriesQueryByGroups('营养学堂')->execute();
//      $this->categories = Doctrine_Core::getTable('category')->getCategoriesQuery()->execute();
  }
  

}
